﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using QuickApp.Core.Models;

namespace Resto.CostControl.Core.Models.SysSettings
{
    public partial class Organization : BaseModel, ITreeModel
    {
        public string Id { set; get; }

        [Display(Name = "部门标识")]
        public string OrgCode { get; set; }

        [Display(Name = "部门名称")]
        public string OrgName { get; set; }

        /// <summary>
        /// 部门类型：单位（如分公司、项目点）、部门
        /// </summary>
        [Display(Name = "部门类型")]
        public string OrgType { get; set; }

        [Display(Name = "上级部门ID")]
        public string ParentId { get; set; }

        [Display(Name = "上级部门标识")]
        public string ParentCode { get; set; }

        [Display(Name = "上级部门名称")]
        public string ParentName { set; get; }

        /// <summary>
        /// 全路径，包含自己节点，用逗号隔开。
        /// </summary>
        [Display(Name = "全路径")]
        [MaxLength(2000)]
        public string FullPath { get; set; }

        [Display(Name = "单位Id")]
        public string UnitId { get; set; }

        [Display(Name = "单位标识")]
        public string UnitCode { get; set; }

        [Display(Name = "单位名称")]
        public string UnitName { get; set; }

        [Display(Name = "排序号")]
        public int SeqNo { get; set; }

        [Display(Name = "备注")]
        public string Remark { get; set; }
    }
}
